package com.example.demo.dao;

import com.example.demo.pojo.UserDO;
import com.example.demo.pojo.flower;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public  interface UserDao {

    UserDO loginUser(@Param(value = "username") String username,@Param(value="password") String password);

    boolean setUser(@Param(value = "userdo") UserDO userDO);

    UserDO getUserNameByName(@Param(value = "username") String username);

    boolean upload(@Param(value = "flower")flower flower,String flowers, String picture);
}
